package com.shy.springframework.beans.factory.config;

import com.shy.springframework.beans.BeansException;
import com.shy.springframework.beans.factory.BeanFactory;

/**
 * 执行BeanPostProcessor 接口实现类方法
 */
public interface AutowireCapableBeanFactory extends BeanFactory {
    /**
     * 执行BeanPostProcessors 接口实现类 postProcessBeforeInitialization 方法
     * @param existingBean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) throws BeansException;

    /**
     * 执行BeanPostProcessors 接口实现类 postProcessAfterInitialization 方法
     * @param existingBean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName)throws BeansException;
}
